﻿@section HeaderSection
{
<link href="../Content/Styles/create_poll_page.css" rel="stylesheet" type="text/css" />
}

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false">
</script>
 <script type="text/javascript">
     $(document).ready(function () {

         $('a[id=gonext]').click(function () {
             $('form#create1Form').submit();
             //return false;
            });
     });
 </script>
 @model RipPoll.Library.PollPE

@{
    ViewBag.Title = "   Create Poll";
    ViewBag.PageDivId = "headerCreatePoll2";
    ViewBag.Margin = "";
} 

<form id="create1Form" action="create1" method="post">
    
 <div id="stepBoxMain">
  <br />
  <img src="../Content/images/rippoll_icon_black.jpg" width="56" height="51" align="middle" /><span class="topText"> You're on your way to making a
  rippoll that just might bring about a change in today's society.</span> <br />
</div>
<div id="createPageLeft">
<div class="stepBoxText" id="stepBox1">
1. Pick a Category</div>
@if (Model != null && !string.IsNullOrEmpty(Model.Name))
{
<div class="stepBoxText" id="stepBox">
<a href="../poll/create2">2. Create your question</a></div>
}
else
{
    <div class="stepBoxText" id="stepBox">
2. Create your question</div>
}

@if (Model != null && (Model.ChoiceGroupId > 0 || Model.Choices != null))
{
<div class="stepBoxText" id="stepBox">
<a href="../Poll/create3">3. Choose your format</a>
</div>
}
else
{
    <div class="stepBoxText" id="stepBox">
    3. Choose your format</div>
}
@if (Model != null && Model.Choices != null)
{
<div class="stepBoxText" id="stepBox">
<a href="../Poll/create4">4. Enhance your rippoll</a></div>
}
else
{
<div class="stepBoxText" id="stepBox">
4. Enhance your rippoll</div>
}

</div>

<div id="createPageRight">
 <img src="../Content/images/step_1.jpg" width="217" height="42" alt="" />
 

 
 <div id="inputBox">    
   <table width="100%">
     <tr>
       <td width="27%" class="category">Local</td>
       <td width="16%" class="category">World</td>
       <td width="22%" class="category">Sports</td>
       <td width="35%" class="category">Entertainment</td>
     </tr>
     <tr>
       <td><table width="100%" cellpadding="0" cellspacing="0">
         <tr>
           <td><label>
                @if (Model != null && ((RipPoll.Library.PollPE)(Model)).Category.Id == 3)
                {
                    <input type="radio" name="radioCategory" id="radio1" value="3" checked="checked" />
                }
                else
                {
                <input type="radio" name="radioCategory" id="radio1" value="3" />
                }
           Local Sports</label></td>
         </tr>
         <tr>
           <td><label>
           @if (Model != null && ((RipPoll.Library.PollPE)(Model)).Category.Id == 4)
           {
             <input type="radio" name="radioCategory" id="radio2" value="4" checked="checked" />
           }
           else
           {
                    <input type="radio" name="radioCategory" id="radio2" value="4" />
           }
             Local Entertainment</label></td>
         </tr>
         </table></td>
       <td valign="top"><table width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><label>
           @if (Model != null && ((RipPoll.Library.PollPE)(Model)).Category.Id == 1)
           {
             <input type="radio" name="radioCategory" id="radio3" value="1" checked="checked"/>
           }
           else
           {
               <input type="radio" name="radioCategory" id="radio3" value="1" />
           }
             World</label></td>
         </tr>
         </table></td>
       <td valign="top"><table width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><label>
           @if (Model != null && ((RipPoll.Library.PollPE)(Model)).Category.Id == 6)
           {
             <input type="radio" name="radioCategory" id="radio6" value="6" />
           }
           else
           {
               <input type="radio" name="radioCategory" id="radio6" value="6" />
           }
             World
           Sports</label></td>
         </tr>
         <tr>
           <td><label>
           @if (Model != null && ((RipPoll.Library.PollPE)(Model)).Category.Id == 1)
           {
             <input type="radio" name="radioCategory" id="radio7" value="1" />
           }
           else
           {
             <input type="radio" name="radioCategory" id="radio7" value="1" />
           }
           Local Sports</label></td>
         </tr>
       </table></td>
       <td valign="top"><table width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><label>
           @if (Model != null && ((RipPoll.Library.PollPE)(Model)).Category.Id == 5)
           {
           <input type="radio" name="radioCategory" id="radio8" value="5" />
           }
           else
           {
             <input type="radio" name="radioCategory" id="radio8" value="5" />
           }
           World Entertainment</label></td>
         </tr>
         <tr>
           <td><label>
           @if (Model != null && ((RipPoll.Library.PollPE)(Model)).Category.Id == 4)
           {
             <input type="radio" name="radioCategory" id="radio9" value="4" />
           }
           else
           {
             <input type="radio" name="radioCategory" id="radio9" value="4" />
               }
             Local Entertainment</label></td>
         </tr>
         </table></td>
     </tr>
   </table>
       <br />
         <span class="topText">Pick the Category that best represents your rippoll</span><br />
         <span class="redText"><a href="#">(you can pick only one)</a><br />
         </span><br />
         <a id="gonext">
            <img src="../content/images/go_to_step_2.jpg" alt="Click here to go to Step 2" width="200" height="28" border="0" />
         </a>
     </div>

     <br />
     <span class="viewCategory"><strong><br />
     <br />
     <br />
     <br />
     <br />
     <br />
     Learn how to make your rippoll look great.</strong></span> <br />
    Read our <span class="blueHiliteText"><a href="#">recommended settings</a>.</span><br />
         <br />
         <span class="viewCategory"><strong>Still have questions?</strong></span> <span class="blueHiliteText"><a href="#">Watch this tutorial</a></span> or <span class="blueHiliteText"><a href="#">ask for help</a></span>.
</div>

 <div id="stepBoxMain">
        <span class="regularText">All polls submitted will be reviewed by our internal audit dept. to make sure they’re not slanderous, malicious, derogatory and basically in poor taste.  Keep it clean.  We want our polls to be taken seriously, since they may deal with local, state, national and worldwide issues.  We strive very hard to make sure that this is a positive experience for those submitting polls and those viewing  and responding to your polls.</span>
    </div>
</form>